﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="FeedbackQuestion.aspx.cs" Inherits="Wicresoft.RDW.Feedback.FeedbackQuestion" %>

<%@ Register Src="../UserControls/PagerControl.ascx" TagName="PagerBasicControl"
    TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #divFeedback
        {
            width: 800px;
        }
    </style>
<script language="javascript" type="text/javascript">
        $(function () {
            $("#<%=lbtnSave.ClientID %>").click(checkAllTextValid);
            $("#<%=lbtnReturn.ClientID %>").click(checkAllTextValid);
        });     
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="center">
        <div class="box">
            <div class="main_title">
                <h2>
                    <%=Resources.NameResource.FeedbackQuestion_MainTitle %></h2>
            </div>
            <div class="line_gray">
            </div>
            <br />
            <div class="MyApplicationContent2" style=" border-top:0px">
                <div class="MyApplicationContent_right">
                    <asp:Button ID="btnFeedbackQuestion" runat="server" OnClick="btnFeedbackQuestion_Click"
                        CausesValidation="false" /></div>
                <div class="clear"></div>
            </div>
            <asp:PlaceHolder ID="phQuestion" runat="server" Visible="false">
                <div id="divFeedback" class="CustomerManagement">
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tbody>
                            <tr class="dcTableItem2">
                                <td class="CustomerM" style="width: 80px">
                                    <%=Resources.NameResource.Question_Question_CN %>:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtQuestion_CN" TextMode="SingleLine" Width="240px"
                                        MaxLength="200"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvQuestion_CN" runat="server" ErrorMessage="*" ControlToValidate="txtQuestion_CN"
                                        ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                </td>
                                <td class="CustomerM" style="width: 80px">
                                    <%=Resources.NameResource.Question_Question_EN %>:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtQuestion_EN" TextMode="SingleLine" Width="240px"
                                        MaxLength="200"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvQuestion_EN" runat="server" ErrorMessage="*" ControlToValidate="txtQuestion_EN"
                                        ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr class="dcTableItem2">
                                <td class="CustomerM" style="width: 80px">
                                    <%=Resources.NameResource.Answer_Answer_CN %>:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtAnswer1_CN" TextMode="SingleLine" Width="240px"
                                        MaxLength="100"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvAnswer1_CN" runat="server" ErrorMessage="*" ControlToValidate="txtAnswer1_CN"
                                        ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                </td>
                                <td class="CustomerM" style="width: 80px">
                                    <%=Resources.NameResource.Answer_Answer_EN %>:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtAnswer1_EN" TextMode="SingleLine" Width="240px"
                                        MaxLength="100"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvAnswer1_EN" runat="server" ErrorMessage="*" ControlToValidate="txtAnswer1_EN"
                                        ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr class="dcTableItem2">
                                <td class="CustomerM" style="width: 80px">
                                    <%=Resources.NameResource.Answer_Answer_CN %>:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtAnswer2_CN" TextMode="SingleLine" Width="240px"
                                        MaxLength="100"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvAnswer2_CN" runat="server" ErrorMessage="*" ControlToValidate="txtAnswer2_CN"
                                        ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                </td>
                                <td class="CustomerM" style="width: 80px">
                                    <%=Resources.NameResource.Answer_Answer_EN %>:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtAnswer2_EN" TextMode="SingleLine" Width="240px"
                                        MaxLength="100"></asp:TextBox>
                                    <br />
                                    <asp:RequiredFieldValidator ID="rfvAnswer2_EN" runat="server" ErrorMessage="*" ControlToValidate="txtAnswer2_EN"
                                        ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr class="dcTableItem2">
                                <td class="CustomerM" style="width: 80px">
                                    <%=Resources.NameResource.Answer_Answer_CN %>:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtAnswer3_CN" TextMode="SingleLine" Width="240px"
                                        MaxLength="100"></asp:TextBox>
                                    <br />
                                    <asp:CustomValidator ID="cvAnswer3_CN" runat="server" ErrorMessage="*" Display="Dynamic"
                                        ForeColor="Red"></asp:CustomValidator>
                                </td>
                                <td class="CustomerM" style="width: 80px">
                                    <%=Resources.NameResource.Answer_Answer_EN %>:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtAnswer3_EN" TextMode="SingleLine" Width="240px"
                                        MaxLength="100"></asp:TextBox>
                                    <br />
                                    <asp:CustomValidator ID="cvAnswer3_EN" runat="server" ErrorMessage="*" Display="Dynamic"
                                        ForeColor="Red"></asp:CustomValidator>
                                </td>
                            </tr>
                            <tr class="dcTableItem">
                                <td colspan="4">
                                    <div class="sqbtnPane">
                                        <p class="sqbtn">
                                            <asp:LinkButton ID="lbtnSave" runat="server" OnClick="lbtnSave_Click" /></p>
                                        <p class="sqbtn">
                                            <asp:LinkButton ID="lbtnReturn" runat="server" OnClick="lbtnReturn_Click" CausesValidation="false" /></p>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <br />
            </asp:PlaceHolder>
            <div class="HistoryApplicationContent">
                <asp:GridView ID="gvFeedbackQuestion" runat="server" AutoGenerateColumns="false"
                    DataKeyNames="QuestionId" HeaderStyle-CssClass="dcTableHeader" RowStyle-CssClass="dcTableAlternatingItem"
                    AlternatingRowStyle-CssClass="dcTableItem" Width="100%" OnRowDataBound="gvFeedbackQuestion_RowDataBound"
                    OnRowDeleting="gvFeedbackQuestion_RowDeleting" OnRowUpdating="gvFeedbackQuestion_RowUpdating">
                    <Columns>
                        <asp:BoundField ItemStyle-Width="4%" />
                        <asp:BoundField DataField="Question_CN" ItemStyle-Width="20%" />
                        <asp:BoundField DataField="Question_EN" ItemStyle-Width="25%" />
                        <asp:TemplateField ItemStyle-Width="20%">
                            <ItemTemplate>
                                <asp:Label ID="lblAnswer_CN" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="20%">
                            <ItemTemplate>
                                <asp:Label ID="lblAnswer_EN" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="true" ItemStyle-Width="15%">
                            <ItemTemplate>
                                <asp:LinkButton class="CommandButton" ID="lnkbtnUpdate" runat="server" CommandName="Update"
                                    CausesValidation="false"></asp:LinkButton>
                                <asp:LinkButton class="CommandButton" ID="lnkbtnDelete" runat="server" CommandName="Delete"
                                    CausesValidation="false"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table width="100%">
                            <tr class="dcTableHeader">
                                <th width="4%">
                                    <%=Resources.NameResource.No%>
                                </th>
                                <th width="20%">
                                    <%=Resources.NameResource.Question_Question_CN%>
                                </th>
                                <th width="25%">
                                    <%=Resources.NameResource.Question_Question_EN%>
                                </th>
                                <th width="20%">
                                    <%=Resources.NameResource.Answer_Answer_CN%>
                                </th>
                                <th width="20%">
                                    <%=Resources.NameResource.Answer_Answer_EN%>
                                </th>
                                <th width="15%">
                                    <%=Resources.ManageResource.mgr_lblAction%>
                                </th>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
                <uc:PagerBasicControl ID="pager" runat="server" PageSize="10" />
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
</asp:Content>
